package com.twinkle.abmsspringboot.entity;

import java.io.Serializable;

/**
 * ABMS - SSM
 * <p>联系人信息持久化类</p>
 * <p>bean -> class :Contacts -> table :contacts</p>
 * <p>ver 1.0.1 更新了 contacts_id 的数据类型</p>
 * <p>ver 1.0.2 删除外键</p>
 *
 * @author Twinkle
 * @version 1.0.2
 * @since 5 Nov. 2020
 */
public class Contacts implements Serializable {
    private Integer contacts_id;
    private String contacts_name;
    private String contacts_phone;
    private String contacts_email;
//    private Integer fk_category;

    public Contacts() {

    }

    public Contacts(Integer contacts_id, String contacts_name, String contacts_phone, String contacts_email) {
        this.contacts_id = contacts_id;
        this.contacts_name = contacts_name;
        this.contacts_phone = contacts_phone;
        this.contacts_email = contacts_email;
    }
//    public Contacts(Integer contacts_id, String contacts_name, String contacts_phone, String contacts_email, Integer fk_category) {
//        this.contacts_id = contacts_id;
//        this.contacts_name = contacts_name;
//        this.contacts_phone = contacts_phone;
//        this.contacts_email = contacts_email;
//        this.fk_category = fk_category;
//    }

    public Integer getContacts_id() {
        return contacts_id;
    }

    public void setContacts_id(Integer contacts_id) {
        this.contacts_id = contacts_id;
    }

    public String getContacts_name() {
        return contacts_name;
    }

    public void setContacts_name(String contacts_name) {
        this.contacts_name = contacts_name;
    }

    public String getContacts_phone() {
        return contacts_phone;
    }

    public void setContacts_phone(String contacts_phone) {
        this.contacts_phone = contacts_phone;
    }

    public String getContacts_email() {
        return contacts_email;
    }

    public void setContacts_email(String contacts_email) {
        this.contacts_email = contacts_email;
    }

//    public Integer getFk_category() {
//        return fk_category;
//    }
//
//    public void setFk_category(Integer fk_category) {
//        this.fk_category = fk_category;
//    }

    /**
     * <p>转换为键值对</p>
     *
     * @return key-value string
     */
    public String toString() {
        return "Contacts [contacts_id=" + contacts_id
                + ", contacts_name=" + contacts_name
                + ", contacts_phone=" + contacts_phone
                + ", contacts_email=" + contacts_email
//                + ", fk_category=" + fk_category
                + "]";
    }
}
